package com.zhixiang.wbl.visitor.bean;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.zhixiang.wbl.visitor.R;

/**
 * Created by dongzhixiang on 16/6/2.
 */
public class CustomMaker extends FrameLayout
{
    private ImageView image;
    private TextView  title;
    public CustomMaker(Context context, AttributeSet attrs)
    {
        super(context, attrs);
       View view = LayoutInflater.from(context)
               .inflate(R.layout.custom_marker,this);
       image =(ImageView)view.findViewById(R.id.id_img_head);
       title = (TextView)view.findViewById(R.id.id_title);
    }
    public ImageView getImage()
    {
        return image;
    }

    public void setImage(ImageView image) {
        this.image = image;
    }

    public TextView getTitle() {
        return title;
    }

    public void setTitle(TextView title) {
        this.title = title;
    }
}
